package com.bestcem.xm.common.core.enums;

/**
 * OperatorTypeEnum
 *
 * @author likunlei
 * @since 2022/9/7
 * Copyright: 2022 www.bestcem.com. All rights reserved.
 */
public enum OperatorTypeEnum {
    EQ,
    NE,
    IN,
    NIN,
    GT,
    GTE,
    LT,
    LTE,
    REGEX,
    NOR_REGEX,
    EXISTS,
    NOR_EXISTS;

    public boolean isNorOperation(){
        switch (this){
            case NE:
            case NIN:
            case NOR_REGEX:
            case NOR_EXISTS:
                return Boolean.TRUE;
            default: return Boolean.FALSE;
        }
    }
}
